﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace game
{
    /// <summary>
    /// SBoczek: Content loader poto aby nie wysylac do kazdej klasy ContentManagera ale poprostu skorzystac ze statycznej funkcji LoadTexture
    /// </summary>
    static public class CContentLoader
    {
        public static void Initialize(ContentManager contentManager)
        {
            oContentManager = contentManager;
        }

        public static Texture2D LoadTexture(string strTextureName)
        {
            return oContentManager.Load<Texture2D>(strTextureName);
        }

        private static ContentManager oContentManager;
    }
}
